<include file="inc:header" />
<div class="page" id='{$data.act}'>
	<?php
	$back_url = U("uccenter/index");
	$back_page = "#Uccenter";
	$back_epage = $_REQUEST['epage']=="" ? "#Uccenter" : "#".$_REQUEST['epage'];
	?>
	<include file="inc:title" />
	<div class="content">
		<!-- 这里是页面内容区 -->
		<!--账户充值-->
		<style>
			.pay_detail{min-height:65px;}
		</style>
		<if condition="$data.c_number eq 3 ">
			<style>
				.Menubox ul li {width: 33.333333333333333%;}
				.Menubox ul li.hover {width: 33.33333333333333%;}
				.Menubox ul li:nth-child(3){ border-right:0px;}
			</style>
		</if>
		<if condition="$data.c_number eq 2 ">
			<style>
				.Menubox ul li {width: 50%;}
				.Menubox ul li.hover {width: 50%;}
				.Menubox ul li:nth-child(2){ border-right:0px;}
			</style>
		</if>
		<if condition="$data.c_number eq 1 ">
			<style>
				.Menubox ul li {width: 100%;}
				.Menubox ul li.hover {width: 100%;}
				.Menubox ul li:nth-child(1){ border-right:0px;}
			</style>
		</if>
		<div class="Menubox">
			<ul>
				<li id="one1"   class="hover">线上提现</li>
			</ul>
		</div>

		<!-- <form action="{:U('collocation/index',array('DoDpTrade'))}" method="get" id="search_form" >  -->
		<input type="hidden" value="collocation" name="ctl">
		<input type="hidden" value="DoDwTrade" name="act">
		<input type="hidden" value="0" name="user_type">
		<input type="hidden" value="wap" name="from">
		<input type="hidden" value="1" name="is_ajax">
		<input type="hidden" value="{$data.user_id}" id="user_id" name="user_id">
        <div id="con_one_1" class="uc_incharge"><!--第三方支付-->
			<div class="figure">
				<input id="money3" name="pTrdAmt" class="" style="height:39px;" type="text" placeholder="请输入金额">
			</div>
			<div class="bank_list in_line">
				<ul>
					<li>
						<div class="pay_detail clearfix">
							<div class="inline_pay_img_show">
								<img src="" height="35px">
							</div>
							<div class="inline_pay_name">
								富友平台(在线提现)
							</div>
						</div>
						<input class="mt  dw" type="radio" value="" checked name="pTrdBnkCode">
					</li>
				</ul>
			</div>
			<div class="w_b but_box_parent padding">
				<div class="w_b_f_1 but_box">
					<button id="other_withdraw_done"  class="but_this">确认</button>
				</div>
			</div>
		</div>

		<script>
            $("#other_withdraw_done").click(function(){
                var ajaxurl = SITE_DOMAIN+'/index.php?m=Home&c=ucincharge&a=ucwithdraw';
                var query = newObject();
                query.pTrdAmt = $.trim($("#money3").val());
                query.is_ajax = 1;
                query.from = 'wap';
                query.pTrdBnkCode = $.trim($("input[name='pTrdBnkCode']:checked").val());
                if( query.pTrdAmt=='' || query.pTrdAmt == 0){
                    $.alert("请输入金额");return false;
                }
                $.showIndicator();

                query.post_type = "json";
                $.ajax({
                    url:ajaxurl,
                    data:query,
                    type:"Post",
                    dataType:"json",
                    success:function(data){
                        $.hideIndicator();
                        if(data.response_code == 1){
                            RouterURL(data.dp_url,'#pay_wap_box',1);
                        }

                    }
                });
            });

		</script>

<include file="inc:footer" />